package org.ch02.job.test04;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

/**
 * @author XCH
 * @date 2025 - 03 - 17
 */
public class MainTest {
    public static void main(String[] args) {
        Class<?> clazz = Integer.class;
        System.out.println("public final class Integer {");
        Field[] fields = clazz.getDeclaredFields();
        for (Field field : fields) {
            String modifier = Modifier.toString(field.getModifiers());
            String type = field.getType().getName();
            String name = field.getName();
            System.out.println(modifier + " " + type + " " + name + ";");
        }
        System.out.println("}");
    }
}
